<%-- 
    Document   : mainfra
    Created on : 2011-8-18, 16:08:16
    Author     : Frances
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <script language="javascript">
            function sub(enterpriseId, excelId, isFinancial){
                alert(enterpriseId);
                alert(excelId);
                var radios;
                var excel;
                var inputList = document.getElementsByTagName("input");
                      for(var i=0;i<inputList.length;i++){
                          var name="excel"+excelId;
                         if(inputList[i].name==name){
                             excel=inputList[i];
                         }
                         var name1="pass"+excelId;
                          if(inputList[i].name==name1){
                              if(inputList[i].checked)
                             radios=inputList[i];
                         }
                      }
                  
               
                   excel.name="excelId";
                   excel.value=excelId;
                 alert(radios.name);
                  alert(radios.value);
                   radios.name="passed";
      
                documnet.form1.action="check_Excel.action";
                document.form1.submit();   
            }
        </script>
        <div>
            <form   name="form1" method="get" action="check_Excel"> 
                <table  id="no" width="627" style="border:1px solid #666666" cellpadding="4" cellspacing="1" >
                    <tr>
                     
                        <td height="22" colspan="7" align="center" style="font-size:16px">审核报表</td>
                         
                        </tr>
                    <tr bgcolor="#EEEEEE">
                        <td width="250">
                            文件
                        </td >
                        <td width="100">
                            提交时间
                        </td>
                        <td width="250">
                            是否通过
                        </td>
                    </tr>
                    <s:iterator var="list" value="outputExcelList">
                        <tr bgcolor="#FFFFFF">
                            <td>
                                <a href="download_Excel?isFinancial=<s:property value='#list.isFinancial'/>&excelId=<s:property value='#list.id' />"><s:property value="#list.fileName"/></a>
                                <input type="hidden" name="" value="<s:property value='#list.fileName'/>"/>
                            </td>
                            <td>
                                <s:property value="#list.date"/>
                                <input type="hidden" name="" value="<s:property value='#list.fileName'/>"/>
                            </td>
                            <td>
                                <input   type="radio"   name="pass<s:property value='#list.id'/>"  value="true" /> 通过
                                <input   type="radio"   name="pass<s:property value='#list.id'/>"  value="false" />不通过
                            </td>
                                 
                                <input   type="hidden"   name="excel<s:property value='#list.id'/>"  value="excel" />
                            <td>
                                <input type="submit" name="button" value="确定" onclick="sub(<s:property value='enterpriseId'/>,<s:property value='#list.id'/>,<s:property value='isFinancial'/>)"/>
                            </td>

                        </tr>
                    </s:iterator>
                  
                        <input   type="hidden"   name="enterpriseId"  value="<s:property value="enterpriseId" />" />
                                   
                        <input   type="hidden"   name="isFinancial"  value="<s:property value="isFinancial" />" />
                </table>
            </form>
        </div>

    </body>
</html>
